/*
 * Copyright (c) 2024 Soon.Liao. All rights reserved.
 * @Author: soon.liao
 * @Date: 2024-03-05 21:07:06
 * @LastEditors: soon.liao
 * @LastEditTime: 2025-03-17 20:41:02
 * @FilePath: \my-car\main\uart_control.h
 * @Description: Create Date : 2024
 * NA
 */
#ifndef __UART_CONTROL_H__
#define __UART_CONTROL_H__

#if CONFIG_IDF_TARGET_ESP32C3
#define TXD_PIN (GPIO_NUM_2)
#define RXD_PIN (GPIO_NUM_3)
#elif CONFIG_IDF_TARGET_ESP32S3
#define TXD_PIN (GPIO_NUM_4)
#define RXD_PIN (GPIO_NUM_5)
#endif

void uart_control_main(void);
int uart_control_send_data(const char *logName, const char *data);

#endif
